package com.talkweb.newproject.common.config;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by qsf on 2019/4/24.
 */
@Configuration
public class CommonConfig {

    /**
     * 依赖注入mapper
     * @return
     */
    @Bean
    public Mapper mapper() {
        return new DozerBeanMapper();
    }
}
